package business;

import data.DBAccess;

/**
 *
 * @author Christian Morgan Andersen
 */
public class Coordinate {
    public static int[][] get2DMatrix(int size, int[] location, String parameters, int aoi) {
        int[] base = {location[0]-aoi, location[1]-aoi};
        int aoiLong = base[0]+aoi*2;
        int aoiLat = base[1]+aoi*2;
        int[][] compList = Calc.makeArray(DBAccess.getInfo(parameters, aoiLong, aoiLat, base),size);
        return compList;
    }
}
